package com.ty.thymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * DemoController
 *
 * @aurhor Administrator  whs
 * @since 2024/9/13
 */
@Controller
public class DemoController {

    @GetMapping(value = "/index")
    public String index() {
        return "demo/index";
    }

    /**
     * 将头部、左侧、尾部引入到页面
     */
    @GetMapping(value = "/fragment")
    public String layout() {
        return "demo/fragment";
    }

    /**
     * 去test页面
     */
    @GetMapping(value = "/test")
    public String main() {
        return "demo/test";
    }

}
